package com.soft.link.model;

import java.io.Serializable;
import java.util.List;

/**
 * company 重庆庆云石油工程技术有限责任公司
 * FileName TreeView
 * Package com.soft.link.model
 * Description  bootstrap treeview 实体封装
 * author Administrator
 * create 2018-04-27 14:58
 * version V1.0
 */
public class TreeView implements Serializable {

    private String id ; // 节点Id

    private String parentId ; // 父节点ID

    private String text ; // 节点名称

    private String icon ; // 节点icon

    private String selectedIcon ; // 选中后icon

    private String backColor ; // 背景颜色

    private String href ; // 点击链接

    boolean selectable = false ;

    List<TreeView> nodes ; // 子节点

/*    text: "Node 1",
    icon: "glyphicon glyphicon-stop",
    selectedIcon: "glyphicon glyphicon-stop",
    color: "#000000",
    backColor: "#FFFFFF",
    href: "#node-1",
    selectable: true,
    state: {
                checked: true,
                disabled: true,
                expanded: true,
                selected: true
    },
    tags: ['available'],
    nodes: [
    {},
            ...
            ]*/

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getSelectedIcon() {
        return selectedIcon;
    }

    public void setSelectedIcon(String selectedIcon) {
        this.selectedIcon = selectedIcon;
    }

    public String getBackColor() {
        return backColor;
    }

    public void setBackColor(String backColor) {
        this.backColor = backColor;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSelectable() {
        return selectable;
    }

    public void setSelectable(boolean selectable) {
        this.selectable = selectable;
    }

    public List<TreeView> getNodes() {
        return nodes;
    }

    public void setNodes(List<TreeView> nodes) {
        this.nodes = nodes;
    }



}
